package com.sa.token.service;

import com.sa.token.dto.request.user.LoginRequest;
import com.sa.token.message.StandardResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * @desc: 系统登录注册接口
 * @author: xhs
 * @date: 2021/8/19 13:51
 * @version: JDK 1.8
 */
public interface LoginService {

    /**
     * 注册
     *
     * @param loginRequest
     * @return
     */
    StandardResponse<Object> register(LoginRequest loginRequest);

    /**
     * 登录
     *
     * @param loginRequest
     * @return
     */
    StandardResponse<Object> login(HttpServletRequest request, LoginRequest loginRequest);

    /**
     * 登出
     *
     * @return
     */
    StandardResponse<Object> logout();
}
